package com.wn.mapper;

import com.wn.common.pojo.Destination;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DestinationMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Destination record);

    int insertSelective(Destination record);

    Destination selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Destination record);

    int updateByPrimaryKey(Destination record);
    //级联查询目的地
    List<Destination> getDestinationByParentId(@Param("parentId") Integer parentId);

    Destination selectByName(@Param("routeEndPlace") String routeEndPlace);

    //查询所有目的地
    List<Destination> getAllDestination();

    //查询
    List<Destination> getDestinationParent();

    List<Destination> getDestinationChild(Destination destination);

    List<Destination> getDestinationSuperior();

    List<Destination> getDestinationListByParentId(Destination destination);

}
